FROM openeuler/openeuler:22.03-lts-sp2

COPY ./prepare_build_env.sh /install/

COPY ./ccache-4.9.1-linux-x86_64.tar.xz /install/
COPY ./install_ccache.sh  /install/

COPY ./distcc-3.4.tar.gz /install/
COPY ./install_distcc.sh  /install/


SHELL [ "/usr/bin/bash", "-c" ]

RUN bash /install/prepare_build_env.sh  && \
    bash /install/install_ccache.sh && \
    bash /install/install_distcc.sh
